<%-- 
    Document   : doEdit
    Created on : 22.07.2009, 21:52:36
    Author     : Mario
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="../STYLES/serverStyles.css" />
        <title>FORWARDING...</title>
    </head>
    <body>
        <jsp:useBean id="consumers" scope="session" class="de.stalinski.db.ConsumersConnector" />
        <%
        String id = request.getParameter("id");
        String fn = request.getParameter("fn");
        String sn = request.getParameter("sn");
        String un = request.getParameter("un");
        String pass_one = request.getParameter("pass_one");
        String pass_two = request.getParameter("pass_two");
        String admin = request.getParameter("admin");
        String mail = request.getParameter("mail");
        String intern = request.getParameter("intern");
        String status = request.getParameter("status");
       
        
        int stat = consumers.editUser(id, fn, sn, un, mail, pass_one, pass_two, admin, intern, status);
        if(stat==0) {
            out.println("User erfolgreich bearbeitet!");
            %><meta http-equiv="refresh" content="1;users.jsp"><%
        } else {
            out.println("Bearbeiten nicht erfolgreich!");
            %><meta http-equiv="refresh" content="1;users.jsp"><%
        }
        %>
    </body>
</html>
